package com.csdj.thread;

public class TestClibThread {

    public static void main(String[] args) {
        Thread oldman = new Thread(new ClibeThread(1500, 10), "老年人");
        Thread youngman = new Thread(new ClibeThread(500, 10), "年轻人");
        oldman.setPriority(10);
        youngman.setPriority(Thread.MIN_PRIORITY);
        oldman.start();
        youngman.start();

        try {
            Thread.sleep(16000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
